﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Elefante
{
    public partial class Form1 : Form
    {
        Elefante Lloyde;
        Elefante Lucinda;
        public Form1()
        {
            InitializeComponent();
            Lucinda = new Elefante() { nome = "Lucinda", tamanhoorelha = 33};
            Lloyde = new Elefante() { nome = "Lloyde", tamanhoorelha = 40};

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Lloyde.quemsoueu();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Lucinda.quemsoueu();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Elefante holder;
            holder = Lloyde;
            Lloyde = Lucinda;
            Lucinda = holder;
            MessageBox.Show("Elefantes trocados");
        }
    }
}
